<?php
/*
 * @Author: 18237136835 liequank@163.com
 * @Date: 2023-08-29 21:43:57
 * @LastEditors: 18237136835 liequank@163.com
 * @LastEditTime: 2023-09-03 22:48:58
 * @FilePath: \laraveDact\app\Admin\routes.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    // Route::get('/', HomeController::class.'@index');

    // 设置工具表单
    Route::get('/settings', 'settingsController@index')->name('settings.index');
    
    // 学生管理
    $router->resource('boxUser', 'BoxUserController');
    // 公告咨询列表
    $router->resource('boxConsulting', 'BoxConsultingController');
    // 商品列表
    $router->resource('boxGiftboxitem', 'BoxGiftboxitemController');
    // 积分商品列表BoxPointproduct
    $router->resource('boxPointproduct', 'BoxPointproductController');
    // 商品订单流列表BoxGiftOrder
    $router->resource('boxGiftOrder', 'BoxGiftOrderController');
    // 积分商品订单流列表BoxGiftOrder
    $router->resource('boxIntegralOrder', 'BoxIntegralOrderController');
    // 打卡BoxAssignment
    $router->resource('boxAssignment', 'BoxAssignmentController');
    // 打卡记录BoxRecord
    $router->resource('boxRecord', 'BoxRecordController');
    // 优惠管理BoxPreferential
    $router->resource('boxPreferential', 'BoxPreferentialController');

});
